package cn.itsource.controller;

import cn.itsource.service.ILogininfoService;
import cn.itsource.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class LoginController {
    @Autowired
    private ILogininfoService logininfoService;
    @PostMapping("/login")
    public R login(@RequestBody Map<String,String> map) {
        return logininfoService.login(map);
    }
}
